extern int passcnt,movecnt,backtracks;
extern int bestQuality,bestLength;

typedef struct {
    int type;
    int srcid;
    int srci;
    int len;
    int dstid;
    int reverse;
} SavedMove;

extern SavedMove *bestSoln;
extern Stack *init_stacks;
extern Move *hist;
